<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="/myTest/js/index1.js"></script>
    <script src="/myTest/script/jquery.min.js"></script>
</head>
<body>
<p id="text">duang~</p>
<button id="btn1">button</button>
<p><input type="text" id="it"></p>

<script>
    $(document).ready(function () {
        /*$("#btn1").click(function () {
            alert("text:"+$('#text').text());
        });*/
        $("#btn1").click(function () {
            alert("text:"+$('#it').val());
        });
    });
</script>
</body>
</html>